/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.awt.Color;
/*    */ import javax.annotation.Nonnull;
/*    */ 
/*    */ public class jm {
/*    */   public static Color v(@Nonnull Color color, int newAlpha) {
/*  8 */     return new Color(color.getRed(), color.getGreen(), color.getBlue(), newAlpha);
/*    */   }
/*    */ 
/*    */   
/*    */   public static Color v(@Nonnull Color color, double shiftAmount) {
/* 13 */     return new Color(
/* 14 */         (int)Math.max(0.0D, Math.min(color.getRed() + qe.v(-shiftAmount, shiftAmount), 255.0D)), 
/* 15 */         (int)Math.max(0.0D, Math.min(color.getGreen() + qe.v(-shiftAmount, shiftAmount), 255.0D)), 
/* 16 */         (int)Math.max(0.0D, Math.min(color.getBlue() + qe.v(-shiftAmount, shiftAmount), 255.0D)));
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\jm.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */